package com.example.demo1.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public class ToprsException extends RuntimeException {

    private final Integer code;
    private final String message;

    public ToprsException(ExceptionEnum ex) {
        this(ex.getCode(), ex.getMsg());
    }
}
